package com.evan.webadmin.biz.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 试卷表
 * </p>
 *
 * @author Pavel
 * @since 2025-02-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("biz_exam_paper")
public class ExamPaper implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "paper_id", type = IdType.AUTO)
    private Long paperId;

    /**
     * 1全部2海关人员3企业人员
     */
    @TableField("personnel_type")
    private Integer personnelType;

    @TableField("module_type")
    private Integer moduleType;
    /**
     * 试卷名称
     */
    @TableField("paper_name")
    private String paperName;

    /**
     * 试题数量
     */
    @TableField("subject_count")
    private Integer subjectCount;

    @TableField("total_score")
    private BigDecimal totalScore;

    /**
     * 合格分数
     */
    @TableField("pass_score")
    private BigDecimal passScore;

    @TableField("published")
    private boolean published;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    /**
     * update_by
     */
    @TableField("create_by")
    private String createBy;

    @TableField("update_by")
    private String updateBy;

    @TableField("delete_flag")
    private Long deleteFlag;
}
